CC       = gcc 
CFLAGS   = -O3 -Wall -lm

EXECS   = max-cut

all: $(EXECS)

clean:
	/bin/rm -f *.o;

error.o: error.c
	$(CC)  $(CFLAGS) -c error.c -o error.o

solution.o: solution.c
	$(CC)  $(CFLAGS) -c solution.c -o solution.o

instance.o: instance.c
	$(CC)  $(CFLAGS) -c instance.c -o instance.o

main.o: main.c
	$(CC)  $(CFLAGS) -c main.c -o main.o

max-cut: main.o instance.o solution.o error.o
	$(CC) $(CFLAGS) -o max-cut main.o instance.o solution.o error.o
